package com.hakim.wfb.customer.params.user;

import com.hkfs.fundamental.api.params.BaseParameter;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * Created by walkman on 2017/7/5.
 */
public class RegisterAndLoginUserParameter extends BaseParameter {

    /**
     * 登录名
     */
    @NotBlank(message = "登录名不能为空")
    private String userCode;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String userPassword;

    /**
     * 确认密码
     */
    @NotBlank(message = "确认密码不能为空")
    private String userConfirmPassword;

    /**
     * 电话
     */
    @NotBlank(message = "手机号不能为空")
    private String userPhone;

    /**
     * 姓名
     */
    @NotBlank(message = "用户名不能为空")
    private String userName;

    /**
     * 身份证号
     */
    @NotBlank(message = "身份证号不能为空")
    private String userCardNo;

    /**
     * 推荐人UUID
     */
    private String refer;

    /**
     * 上级用户ID
     */
    private String parentUserId;

    /**
     * 终端类型
     */
    @NotNull
    private Integer terminalType;

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserConfirmPassword() {
        return userConfirmPassword;
    }

    public void setUserConfirmPassword(String userConfirmPassword) {
        this.userConfirmPassword = userConfirmPassword;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserCardNo() {
        return userCardNo;
    }

    public void setUserCardNo(String userCardNo) {
        this.userCardNo = userCardNo;
    }

    public String getParentUserId() {
        return parentUserId;
    }

    public void setParentUserId(String parentUserId) {
        this.parentUserId = parentUserId;
    }

    public String getRefer() {
        return refer;
    }

    public void setRefer(String refer) {
        this.refer = refer;
    }

    public Integer getTerminalType() {
        return terminalType;
    }

    public void setTerminalType(Integer terminalType) {
        this.terminalType = terminalType;
    }
}
